x1,y1,w1,h1 = eval(input('Enter r1\'s center x-, y-coordinates, width, and height: '))
x2,y2,w2,h2 = eval(input('Enter r2\'s center x-, y-coordinates, width, and height: '))
if (x1 - x2) < (w1 - w2) and (y1 - y2) < (h1 - h2):
    print('r2 is inside r1')
elif (w1 - w2) < (x1 - x2) < (w1 + w2) or (h1 - h2) < (y1 - y2) < (h1 + h2):
    print('r2 overlaps r1')
else:
    print('r2 does not overlap r1')